﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YJ_Core.Entities.Utils;

namespace YJ_Code.Entities.Topic
{
    /// <summary>
    /// 话题实体
    /// </summary>
    public class Topics : BaseEntities
    {
        /// <summary>
        /// 话题id
        /// </summary>
        public string TopicId { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容描述
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string Tags { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [Column(TypeName = "decimal(10,6)")]
        public double Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [Column(TypeName = "decimal(10,6)")]
        public double Latitude { get; set; }

        /// <summary>
        /// 地点名称
        /// </summary>
        public string LocationName { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 话题状态：
        /// 0:草稿 1:已发布
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 审核状态：<br/>
        /// 0：待审核 <br/>
        /// 1：审核通过<br/>
        /// 2：审核不通过
        /// </summary>
        public int CheckStatus { get; set; }

        /// <summary>
        /// 审核驳回理由
        /// </summary>
        public string RejectReason { get; set; }

        /// <summary>
        /// 审核人
        /// </summary>
        public string CheckMan { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime CheckTime { get; set; }

        /// <summary>
        /// 点赞数量
        /// </summary>
        public long LikeCount { get; set; }

        /// <summary>
        /// 收藏数量
        /// </summary>
        public long CollectCount { get; set; }

        /// <summary>
        /// 浏览数量
        /// </summary>
        public long SkimThroughCount { get; set; }

        /// <summary>
        /// 分享数量
        /// </summary>
        public long ShareCount { get; set; }
    }
}
